package com.upcode.weighing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.upcode.weighing.domain.SysUserRole;
import com.upcode.weighing.vo.add.SysUserRoleAddVo;
import com.upcode.weighing.vo.del.BaseDelVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author alex
 * @since 2019-04-10
 */
public interface SysUserRoleService extends IService<SysUserRole> {
    int addUserRole(SysUserRole sysUserRole);//添加用户-角色
    boolean add(SysUserRoleAddVo sysUserRoleAddVo);//批量添加用户-角色
    int delRoleUser(BaseDelVo vo);//删除 解除角色下绑定的用户
    SysUserRole queryByUserId(@Param("userId") Long userId);//根据userId查询 用户角色关联表

}
